import { http } from '@/utils/http/axios'

export function listCustom(data = {}) {
  return http.request({
    url: '/admin/base/custom/list',
    method: 'get',
    data,
  })
}

export function pageCustom(data = {}) {
  return http.request({
    url: '/admin/base/custom/page',
    method: 'post',
    data,
  })
}

export function addCustom(data = {}) {
  return http.request({
    url: '/admin/base/custom/add',
    method: 'post',
    data,
  })
}

export function updateCustom(data = {}) {
  return http.request({
    url: '/admin/base/custom/update',
    method: 'post',
    data,
  })
}

export function delCustom(data = {}) {
  return http.request({
    url: '/admin/base/custom/delete',
    method: 'post',
    data,
  })
}

export function exportCustom(data) {
  return http.request({
    url: '/admin/base/custom/export',
    method: 'post',
    data,
    responseType: 'blob',
  });
};
